package com.quanyan.ic.vendingMachine.protocol;

/**
 * Created by zhuo.shi on 2017/7/28.
 */
public enum Cmd {

    HANDSHAKE_REQ(1, "HANDSHAKE_REQ"),                      //握手请求消息
    HANDSHAKE_RESP(2, "HANDSHAKE_RESP"),                    //握手应答消息
    HEARTBEAT_REQ(3, "HEARTBEAT_REQ"),                      //心跳请求消息
    HEARTBEAT_RESP(4, "HEARTBEAT_RESP"),                    //心跳应答消息
    UPDATE_GOODSLIST_REQ(5, "UPDATE_GOODSLIST_REQ"),        //商品列表更新下发消息
    UPDATE_GOODSLIST_RESP(6, "UPDATE_GOODSLIST_RESP"),      //商品列表更新应答消息
    ORDER_SUCCESS(7, "ORDER_SUCCESS"),                      //订单支付成功下发消息
    SHIPGOODS_SUCCESS(8, "SHIPGOODS_SUCCESS"),              //出货成功失败上报消息
    UPDATE_POSTER_REQ(9, "UPDATE_POSTER_REQ"),              //海报更新请求消息
    UPDATE_POSTER_RESP(10, "UPDATE_POSTER_RESP"),           //海报更新应答消息
    UPGRADE_REQ(11, "UPGRADE_REQ"),                         //资源升级请求消息
    UPGRADE_RESP(12, "UPGRADE_RESP"),                       //资源升级应答消息
    UPLOADLOG_REQ(13,"UPLOADLOG_REQ");                      //日志上传下发消息
    private int value;
    private String desc;

    Cmd(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }

}
